package com.jeesite.modules.stock.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jeesite.modules.stock.dao.mapper.SectorMonthMapper;
import com.jeesite.modules.stock.dto.SectorKlineQueryDTO;
import com.jeesite.modules.stock.entity.SectorMonthEntity;

@Component
public class SectorMonthDao {
	
	@Autowired
	private SectorMonthMapper sectorMonthMapper;
	
	public List<SectorMonthEntity> findList(String groupName) {
		SectorKlineQueryDTO param = new SectorKlineQueryDTO();
		param.setGroupName(groupName);
		param.setLimit(252);
		return sectorMonthMapper.findList(param);
	}
	
}
